// ts 类型系统
// 1. 布尔
var bool = true;
var bool1 = false;
// 2. 字符串
var str = '12345';
var str1 = "abcd";
var str2 = "1234567";
// 3. 数字
var num = 12345;
// 4. object
var obj = {};
// 5. 数组
var arr = [1, 2, 3, 4, 5];
var arr1 = [true, false, 1];
// 6. 元组 Tuple
// 元组是特殊的数组， 数组长度为2
var t1 = [true, 123];
// 7. 枚举
var Color;
(function (Color) {
    Color[Color["Red"] = 0] = "Red";
    Color[Color["Yellow"] = 1] = "Yellow";
    Color[Color["Blue"] = 2] = "Blue";
    Color[Color["Oranage"] = 3] = "Oranage";
    Color[Color["Green"] = 4] = "Green";
})(Color || (Color = {}));
console.log(Color.Red);
console.log(Color[0]);
// Color.Red  => 0
// Color[0] => 'Red'
